package com.financial.common.vo;



/**
 * '用于响应json格式的Result
 * 
 * @author Kival
 */
public class JsonResult {
    
    private int code;    // 响应码
    private String msg;  // 响应信息
    
    private Object data; // 附加数据

    public JsonResult() {
        super();
        this.code = ResponseCode.SUCCESS;
        this.msg = "成功";
    }

    public JsonResult(String msg) {
        super();
        this.msg = msg;
    }

    public JsonResult(int code, String msg) {
        super();
        
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}